#include "ErrorAnalysis.h"
#include <string>


class ErrorEstimator
{
public:
	// Contructor and Destructor
	ErrorEstimator(pMesh theMesh);
	~ErrorEstimator();


	map<int,float> VCL;
	set<pVertex> AllNodes;
	set<pFace> ListedFaces;

	void CoarseFacesList (pMesh theMesh);
	void FacesList (pMesh theMesh);
	void VertexList (pMesh theMesh);

	void Calc_new_h (pMesh theMesh, double Factor);
	void Calc_Factor ();
	void Calc_Cl (pMesh theMesh, double Factor);
	void SaveFileListCls ();
	void SaveFileListFaces ();
	void LeitorDeLista(ErrorAnalysis *pErrorAnalysis, pMesh theMesh);

private:
	char meshFilename[];

};

